package com.qf.hospital.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * pharmacy
 * @author 
 */
public class Pharmacy implements Serializable {
    /**
     * 药品id
     */
    private Integer pharmacyId;

    /**
     * 药品名称
     */
    private String pharmacyName;

    /**
     * 药品库存表id
     */
    private Integer drugStoreId;

    /**
     * 经办人id
     */
    private Integer skullId;

    /**
     * 仓库id
     */
    private Integer warehouseId;

    /**
     * 单位
     */
    private Integer unit;

    /**
     * 单位名称
     */
    private String unitName;

    /**
     * 售卖价格
     */
    private Double sellingPrice;

    /**
     * 药品产地
     */
    private Integer area;

    /**
     * 药品类型
     */
    private Integer type;

    /**
     * 生产日期
     */
    private Date produceDate;

    /**
     * 有效截止日期
     */
    private Date validDate;

    /**
     * 药品库存数
     */
    private Integer drugStoreNum;

    private String skullBatch;

    private static final long serialVersionUID = 1L;

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Integer getPharmacyId() {
        return pharmacyId;
    }

    public void setPharmacyId(Integer pharmacyId) {
        this.pharmacyId = pharmacyId;
    }

    public String getPharmacyName() {
        return pharmacyName;
    }

    public void setPharmacyName(String pharmacyName) {
        this.pharmacyName = pharmacyName;
    }

    public Integer getDrugStoreId() {
        return drugStoreId;
    }

    public void setDrugStoreId(Integer drugStoreId) {
        this.drugStoreId = drugStoreId;
    }

    public Integer getSkullId() {
        return skullId;
    }

    public void setSkullId(Integer skullId) {
        this.skullId = skullId;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Integer getUnit() {
        return unit;
    }

    public void setUnit(Integer unit) {
        this.unit = unit;
    }

    public Double getSellingPrice() {
        return sellingPrice;
    }

    public void setSellingPrice(Double sellingPrice) {
        this.sellingPrice = sellingPrice;
    }

    public Integer getArea() {
        return area;
    }

    public void setArea(Integer area) {
        this.area = area;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getProduceDate() {
        return produceDate;
    }

    public void setProduceDate(Date produceDate) {
        this.produceDate = produceDate;
    }

    public Date getValidDate() {
        return validDate;
    }

    public void setValidDate(Date validDate) {
        this.validDate = validDate;
    }

    public Integer getDrugStoreNum() {
        return drugStoreNum;
    }

    public void setDrugStoreNum(Integer drugStoreNum) {
        this.drugStoreNum = drugStoreNum;
    }

    public String getSkullBatch() {
        return skullBatch;
    }

    public void setSkullBatch(String skullBatch) {
        this.skullBatch = skullBatch;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Pharmacy other = (Pharmacy) that;
        return (this.getPharmacyId() == null ? other.getPharmacyId() == null : this.getPharmacyId().equals(other.getPharmacyId()))
            && (this.getPharmacyName() == null ? other.getPharmacyName() == null : this.getPharmacyName().equals(other.getPharmacyName()))
            && (this.getDrugStoreId() == null ? other.getDrugStoreId() == null : this.getDrugStoreId().equals(other.getDrugStoreId()))
            && (this.getSkullId() == null ? other.getSkullId() == null : this.getSkullId().equals(other.getSkullId()))
            && (this.getWarehouseId() == null ? other.getWarehouseId() == null : this.getWarehouseId().equals(other.getWarehouseId()))
            && (this.getUnit() == null ? other.getUnit() == null : this.getUnit().equals(other.getUnit()))
            && (this.getSellingPrice() == null ? other.getSellingPrice() == null : this.getSellingPrice().equals(other.getSellingPrice()))
            && (this.getArea() == null ? other.getArea() == null : this.getArea().equals(other.getArea()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getProduceDate() == null ? other.getProduceDate() == null : this.getProduceDate().equals(other.getProduceDate()))
            && (this.getValidDate() == null ? other.getValidDate() == null : this.getValidDate().equals(other.getValidDate()))
            && (this.getDrugStoreNum() == null ? other.getDrugStoreNum() == null : this.getDrugStoreNum().equals(other.getDrugStoreNum()))
            && (this.getSkullBatch() == null ? other.getSkullBatch() == null : this.getSkullBatch().equals(other.getSkullBatch()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPharmacyId() == null) ? 0 : getPharmacyId().hashCode());
        result = prime * result + ((getPharmacyName() == null) ? 0 : getPharmacyName().hashCode());
        result = prime * result + ((getDrugStoreId() == null) ? 0 : getDrugStoreId().hashCode());
        result = prime * result + ((getSkullId() == null) ? 0 : getSkullId().hashCode());
        result = prime * result + ((getWarehouseId() == null) ? 0 : getWarehouseId().hashCode());
        result = prime * result + ((getUnit() == null) ? 0 : getUnit().hashCode());
        result = prime * result + ((getSellingPrice() == null) ? 0 : getSellingPrice().hashCode());
        result = prime * result + ((getArea() == null) ? 0 : getArea().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getProduceDate() == null) ? 0 : getProduceDate().hashCode());
        result = prime * result + ((getValidDate() == null) ? 0 : getValidDate().hashCode());
        result = prime * result + ((getDrugStoreNum() == null) ? 0 : getDrugStoreNum().hashCode());
        result = prime * result + ((getSkullBatch() == null) ? 0 : getSkullBatch().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pharmacyId=").append(pharmacyId);
        sb.append(", pharmacyName=").append(pharmacyName);
        sb.append(", drugStoreId=").append(drugStoreId);
        sb.append(", skullId=").append(skullId);
        sb.append(", warehouseId=").append(warehouseId);
        sb.append(", unit=").append(unit);
        sb.append(", sellingPrice=").append(sellingPrice);
        sb.append(", area=").append(area);
        sb.append(", type=").append(type);
        sb.append(", produceDate=").append(produceDate);
        sb.append(", validDate=").append(validDate);
        sb.append(", drugStoreNum=").append(drugStoreNum);
        sb.append(", skullBatch=").append(skullBatch);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}